home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Setup / BCB / data.z / types.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-09  |  970 b   |  57 lines

  1. /*  types.h
  2.  
  3.     Types for dealing with time.
  4.  
  5. */
  6.  
  7. /*
  8.  *      C/C++ Run Time Library - Version 9.0
  9.  *
  10.  *      Copyright (c) 1987, 1998 by Borland International
  11.  *      All Rights Reserved.
  12.  *
  13.  */
  14. /* $Revision:   9.2  $ */
  15.  
  16. #if !defined(__TYPES_H)
  17. #define __TYPES_H
  18.  
  19. #ifdef __cplusplus
  20. namespace std {
  21. #endif /* __cplusplus */
  22.  
  23. #ifndef  _TIME_T
  24. typedef long time_t;
  25. #ifdef __cplusplus
  26. #  define _TIME_T std::time_t
  27. #else
  28. #  define _TIME_T time_t
  29. #endif /* __cplusplus */
  30. #endif
  31.  
  32. typedef short dev_t;
  33. typedef short ino_t;
  34. typedef short mode_t;
  35. typedef short nlink_t;
  36. typedef int   uid_t;
  37. typedef int   gid_t;
  38. typedef long  off_t;
  39.  
  40. #ifdef __cplusplus
  41. } // std
  42. #  ifndef __USING_CNAME__
  43.    using std::time_t;
  44.    using std::dev_t;
  45.    using std::ino_t;
  46.    using std::mode_t;
  47.    using std::nlink_t;
  48.    using std::uid_t;
  49.    using std::gid_t;
  50.    using std::off_t;
  51. #endif
  52. #endif /* __cplusplus */
  53.  
  54.  
  55. #endif  /* __TYPES_H */
  56.  
  57.